package com.hrt.datasender.datadao.model;

import java.text.SimpleDateFormat;
import java.util.List;

import com.btcode.orm.model.IDomainField;
import com.btcode.orm.model.IField;
import com.btcode.orm.model.IModelAddition;
import com.btcode.orm.relation.ex.IRelation;

public class BdSendRecordModelAddition implements IModelAddition<BdSendRecordModel> {

    @Override
    public void generateDefaultValue(BdSendRecordModel model) {

        SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

        String dateText = sf.format(model.getDataReadtime());
        model.setDataReadtimeText(dateText);
    }

    @Override
    public void initField(List<IField> fields) {
        // TODO Auto-generated method stub

    }

    @Override
    public void initRelations(List<IRelation> relations) {
        // TODO Auto-generated method stub

    }

    @Override
    public void initDomainField(List<IDomainField> domainFields) {
        // TODO Auto-generated method stub

    }

    @Override
    public void beforeCreate(BdSendRecordModel model) {
        // TODO Auto-generated method stub

    }

    @Override
    public void afterCreate(BdSendRecordModel model) {
        // TODO Auto-generated method stub

    }

    @Override
    public void beforeUpdate(BdSendRecordModel model) {
        // TODO Auto-generated method stub

    }

    @Override
    public void afterUpdate(BdSendRecordModel model) {
        // TODO Auto-generated method stub

    }

    @Override
    public void beforeDelete(BdSendRecordModel model) {
        // TODO Auto-generated method stub

    }

    @Override
    public void afterDelete(BdSendRecordModel model) {
        // TODO Auto-generated method stub

    }

}
